package MultiMediaPlayer.Media.decorator;

import MultiMediaPlayer.Media.Media;


//装饰模式
public class EffectDecorator extends MediaDecorator {
    private final Media media;

    public EffectDecorator(Media media) {
        this.media = media;
    }

    @Override
    public String getDescription() {
        return media.getDescription() + "\n"
                + "-->音效增强开启";
    }

    @Override
    public void play() {
        media.play();
        System.out.println("音效增强中...");
    }

    @Override
    public String getName() {
        return media.getName();
    }

}
